<extend name="Public:Base" />
<block name="content">
	<style type="text/css">
	.updatelog{margin-top: 10px;margin-bottom: 10px;padding: 10px;background: #eee;line-height: 25px;}
	</style>
	<div class="main-title">
		<h2>系统升级</h2>
	</div>
	<div class="data-table table-striped">
		<form METHOD="POST" class="form" name="form1" action="__URL__/updatefromserver">
			<TABLE class="editing_list" cellpadding="0" cellspacing="0" >
				<TR> 
					<TD class="tRight tTop" width="15%">本地版本：</TD>
					<TD class="tLeft">{$localversion}</TD> 
				</TR> 
				<TR>
					<TD class="tRight" >远程版本：</TD>
					<TD class="tLeft" >{$remoteversion.version}</TD>
				</TR>			
				<?php
					if (floatval($localversion)< floatval($remoteversion['version'])){
				?>
				<TR> 
					<TD class="tRight tTop">&nbsp;</TD>
					<TD class="tLeft">有新版本需要更新</TD> 
				</TR>          
				<TR>
					<TD class="tRight">更新日志：</TD>
					<TD class="tLeft updatelog">{$remoteversion.log}</TD>
				</TR>
	        
				<TR>
					<TD class="tRight">文件：</TD>
					<TD class="tLeft updatelog">
						<volist name="remoteversion.file" id="vo">
							<eq name="vo" value="d" >删除<else />更新</eq>{$key}<br>
						</volist>
					</TD>
				</TR>
				<TR> 
					<TD class="tRight tTop">&nbsp;</TD>
					<TD class="tLeft">更新前请先备份源文件,避免诸如断网,文件锁定等原因造成更新失败,以至于无法打开博客</TD> 
				</TR>
				<TR>
					<TD>&nbsp;</TD>
					<TD>
						<input type="submit" class="submit" value="立即更新" click="if (confirm('更新前请先备份源文件,避免诸如断网,文件锁定等原因造成更新失败,以至于无法打开博客\\n\\n已经备份 --&gt; [确定]\\n还未备份 --&gt; [取消]')){return true;}else{return false;}" />
					</TD>
				</TR>
				<?php }else{ ?>
				<TR> 
					<TD class="tRight tTop">&nbsp;</TD>
					<TD class="tLeft">当前已是最新版本,无需更新</TD> 
				</TR>
				<?php } ?>
			</TABLE>
		</form>
	</div>
</block>